package com.clear.command.demo1;

/**
 * 具体命令类：关空调
 */
public class AirConditionerOffCommand implements Command {

    private AirConditioner airConditioner;

    public AirConditionerOffCommand(AirConditioner airConditioner) {
        this.airConditioner = airConditioner;
    }

    @Override
    public void execute() {
        airConditioner.turnOff();
    }
}
